Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add check for kyoto tycoon #426

Merged
merged 5 commits into from
Mar 27, 2013
Merged

add check for kyoto tycoon #426

merged 5 commits into from
Mar 27, 2013

Conversation

dcrosta
Copy link
Contributor

@dcrosta dcrosta commented Mar 27, 2013

Open question for DataDog folks: should we submit rates per second for the opcounters rather than raw values? My instinct is to leave it like this, and let users use rate() in graph definitions.

def check(self, instance):
url = instance.get('report_url')
if not url:
self.log.exception('Invalid Kyoto Tycoon report url %r', url)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should let these "expected" exceptions bubble up. They'll be caught by the agent and will display in the "datadog-agent info" command (I'll add this to the docs today). Same with the couldn't connect exceptions, etc.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Meaning I should remove the try/except at lines 53-58, and not check report_url here? huh, good to know.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea, You can still check it if you want to raise a more informative message, just raise Exception("invalid url ...") instead of continuing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat. Updated.

@clutchski
Copy link
Contributor

Awesome @dcrosta. Thanks. Made one small comment (the others might have a little more). Can you also include an example conf.d config file as well?

@dcrosta
Copy link
Contributor Author

dcrosta commented Mar 27, 2013

@clutchski sure -- where do example conf.d's go?

@clutchski
Copy link
Contributor

clutchski added a commit that referenced this pull request Mar 27, 2013
@clutchski clutchski merged commit 5106b20 into DataDog:master Mar 27, 2013
@clutchski
Copy link
Contributor

thanks dan. may the tokyo tyrant reign forever. 🇯🇵

@dcrosta
Copy link
Contributor Author

dcrosta commented Mar 27, 2013

Tokyo tyrant is so 4 years ago, just ask @clofresh :P

  • Dan

On Mar 27, 2013, at 6:21 PM, Matt Perpick [email protected] wrote:

thanks dan. may the tokyo tyrant reign forever.


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants